Deep Amortized Inference for Probabilistic Programs

نویسندگان

  • Daniel Ritchie
  • Paul Horsfall
  • Noah D. Goodman
چکیده

Probabilistic programming languages (PPLs) are a powerful modeling tool, ableto represent any computable probability distribution. Unfortunately, probabilisticprogram inference is often intractable, and existing PPLs mostly rely on expensive,approximate sampling-based methods. To alleviate this problem, one could tryto learn from past inferences, so that future inferences run faster. This strategyis known as amortized inference; it has recently been applied to Bayesian net-works [28, 22] and deep generative models [20, 15, 24]. This paper proposes asystem for amortized inference in PPLs. In our system, amortization comes in theform of a parameterized guide program. Guide programs have similar structureto the original program, but can have richer data flow, including neural networkcomponents. These networks can be optimized so that the guide approximatelysamples from the posterior distribution defined by the original program. We presenta flexible interface for defining guide programs and a stochastic gradient-basedscheme for optimizing guide parameters, as well as some preliminary results onautomatically deriving guide programs. We explore in detail the common machinelearning pattern in which a ‘local’ model is specified by ‘global’ random valuesand used to generate independent observed data points; this gives rise to amortizedlocal inference supporting global model learning.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Modeling Cognition with Probabilistic Programs: Representations and Algorithms

This thesis develops probabilistic programming as a productive metaphor for understanding cognition, both with respect to mental representations and the manipulation of such representations. In the first half of the thesis, I demonstrate the representational power of probabilistic programs in the domains of concept learning and social reasoning. I provide examples of richly structured concepts,...

متن کامل

Bounded Expectations: Resource Analysis for Probabilistic Programs

Following the increasing relevance of probabilistic programming, there is a renewed interest in addressing the challenges that probabilistic code bears for static reasoning. For example, there are successful techniques for automatic worst-case resource analysis but these techniques are not applicable to many probabilistic programs, which, for instance, only terminate almost surely. This paper p...

متن کامل

Probabilistic Adaptive Computation Time

We present a probabilistic model with discrete latent variables that control the computation time in deep learning models such as ResNets and LSTMs. A prior on the latent variables expresses the preference for faster computation. The amount of computation for an input is determined via amortized maximum a posteriori (MAP) inference. MAP inference is performed using a novel stochastic variationa...

متن کامل

Probabilistic Neural Programs

We present probabilistic neural programs, a framework for program induction that 1 permits flexible specification of both a computational model and inference algo2 rithm while simultaneously enabling the use of deep neural networks. Probabilistic 3 neural programs combine a computation graph for specifying a neural network with 4 an operator for weighted nondeterministic choice. Thus, a program...

متن کامل

Amortized Resource Analysis with Polynomial Potential A Static Inference of Polynomial Bounds for Functional Programs (Extended Version)

In 2003, Hofmann and Jost introduced a type system that uses a potential-based amortized analysis to infer bounds on the resource consumption of (first-order) functional programs. This analysis has been successfully applied to many standard algorithms but is limited to bounds that are linear in the size of the input. Here we extend this system to polynomial resource bounds. An automatic amortiz...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1610.05735  شماره 

صفحات  -

تاریخ انتشار 2016